#define _CRT_SECURE_NO_WARNINGS
//1.C version
#if 1
#include<stdio.h>
int main()
{
	int n=0;
	scanf("%d", &n);
	for (int n = 5; n > 0; n--)
	{
		for (int i = 5 - n; i > 0; i--)
		{
			printf(" ");
		}
		for (int i = 2 * n - 1; i > 0;i--)
		{
			printf("#");
		}
		printf("\n");
	}
	return 0;
}
#endif
//2.C++ version
#if 0
# include <iostream>
using namespace std;
int main() 
{
	int n, k;
	cin >> n;
	k = 2 * n - 1;
	for (int i = 0; i < n; i++) 
	{
		for (int j = i; j > 0; j--) 
		{
			cout << ' ';
		}
		for (; k > 0; k--) 
		{
			cout << "#";
		}
		k = 2 * n - 1 - (i + 1) * 2;
		cout << endl;
	}
	return 0;
}
#endif